<template>
    <div>
        <label><slot></slot></label>
        <input
            type="radio"
            :name="name"
            value="男"
            :checked="value == '男' ? true : false"
            @change="$emit('input','男')"
        /><label>男</label>
        <input
            type="radio"
            :name="name"
            value="女"
            :checked="value == '女' ? true : false"
             @change="$emit('input','女')"
        /><label>女</label>
    </div>
</template>

<script>
export default {
    props: ["name", "value"],
};
</script>

<style>
</style>